// DataBaseAccess.h: interface for the CDataBaseAccess class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATABASEACCESS_H__A2301F3D_FF5C_4892_9D80_C43B6054C996__INCLUDED_)
#define AFX_DATABASEACCESS_H__A2301F3D_FF5C_4892_9D80_C43B6054C996__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#pragma warning( disable:4786 )

#pragma warning(disable:4146)

#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")
//#import "msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF")
#pragma warning(default:4146)
#include <string>
#include <vector>
using std::vector;
using std::string;

typedef vector<string> VEC_STRING;
typedef struct 
{
	VEC_STRING  vec_Column;	
} tOneRecordStruct;

typedef vector<tOneRecordStruct> VEC_RECORDSET;
class CDataBaseAccess  
{
public:
	CDataBaseAccess();
	virtual ~CDataBaseAccess();
    int stub();
	int openDB(const char* p_pcDBFile,const char* p_pcPassword=NULL);
	int QueryDB(const char* p_pcSQL,VEC_RECORDSET& p_vecRecordset);
	int closeDB();
	int iGetRecordSet();
	VEC_RECORDSET m_vecRecordset;
private:
	_ConnectionPtr m_pConnection;
	_RecordsetPtr m_pRecordset;
};

#endif // !defined(AFX_DATABASEACCESS_H__A2301F3D_FF5C_4892_9D80_C43B6054C996__INCLUDED_)
